package com.kaikai.edu.client;
import com.kaikai.edu.client.impl.UcenterClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import vo.CommentUserInfo;
@FeignClient(name = "service-ucenter",fallback = UcenterClientImpl.class)
@Component
public interface UcenterClient {
    //根据用户id获得用户信息
    @GetMapping("/ucenter/member/getUserInfo/{id}")
    public CommentUserInfo getUserInfo(@PathVariable("id") String id);
}
